package com.itheima.homework.Collections类;

import java.util.ArrayList;
import java.util.Collections;

public class Demo1 {
    public static void main(String[] args) {
        ArrayList<Integer> list=new ArrayList<>();
        Collections.addAll(list,1,2,3,4,5,6);
        /*Collections.shuffle(list);//打乱
        list.forEach(System.out::print);*/

        /*Collections.sort(list);
        for (Integer integer : list) {
            System.out.println(integer);
        }*/

        Collections.reverse(list);
        for (Integer integer : list) {
            System.out.println(integer);
        }
    }
}
